Skip to content

Replace QueryPatternSearch with SearchManager across services#7

Merged
knobik merged 4 commits intomainfrom
context-builder-search
Feb 13, 2026
Merged

Replace QueryPatternSearch with SearchManager across services#7
knobik merged 4 commits intomainfrom
context-builder-search

Conversation

@knobik
Copy link
Copy Markdown
Owner

@knobik knobik commented Feb 12, 2026

  • Removed the QueryPatternSearch class and all associated logic.
  • Refactored ContextBuilder and tools to use the new SearchManager for query pattern and learning searches.
  • Added support for custom knowledge indexes in the Context model.
  • Updated SemanticModelLoader to load table metadata exclusively from the database, removing file-based support.
  • Enhanced SearchKnowledgeTool to dynamically handle multiple indexes and improve formatting of results.

- Removed the `QueryPatternSearch` class and all associated logic.
- Refactored `ContextBuilder` and tools to use the new `SearchManager` for query pattern and learning searches.
- Added support for custom knowledge indexes in the `Context` model.
- Updated `SemanticModelLoader` to load table metadata exclusively from the database, removing file-based support.
- Enhanced `SearchKnowledgeTool` to dynamically handle multiple indexes and improve formatting of results.
- Deleted `runtimeSchema` from `Context`, `ContextBuilder`, and tests.
- Refactored context generation to rely on pre-defined semantic models and business rules.
- Removed `SchemaIntrospector` and all runtime schema assembly logic.
- Updated documentation to clarify that runtime schema is fetched on-demand using tools during the agent loop.
…lowchart

- Added Mermaid diagram to README for visualizing the agent workflow.
- Expanded explanations to cover the newly introduced six context layers.
- Updated "Context Assembly" sections to reflect distinctions between layers sourced from knowledge bases and those generated on-demand.
- Introduced optional integration with Prism Relay for registering tools from Model Context Protocol (MCP) servers.
- Added tests to validate Relay integration, tool registration, and compatibility with custom tools.
- Updated documentation to include setup instructions, configuration examples, and usage scenarios.
- Enhanced `SqlAgentServiceProvider` to dynamically register tools from MCP servers if `prism-php/relay` is installed.
- Modified `composer.json` to suggest the `prism-php/relay` package for MCP relay functionality.
@knobik knobik merged commit dd2432b into main Feb 13, 2026
9 checks passed
@knobik knobik deleted the context-builder-search branch February 13, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant